Self-adjusting duty cycle tuner

ABSTRACT

A duty cycle tuner measures high and low periods of a signal, calculates an actual duty cycle, generates duty control signals based on the actual duty cycle and a desired duty cycle, and adjusts the duty cycle responsive to the duty control signals. The high and low periods are measured using high-speed counters to provide a high count for the high period and a low count for the low period. The actual duty cycle value is then computed from the high and low counts, and compared to the desired duty cycle value to generate increment and decrement signals which may be positive or zero, to increase, decrease or maintain the actual duty cycle. In this manner, even if the high and low counts are subject to variations due to process, temperature or power supply voltage, their ratio is independent of such variations, so the tuner is immune to those effects.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention generally relates to digital electronics, and more particularly to a method of controlling the duty cycle of a signal.

2. Description of the Related Art

In digital electronics, the duty cycle of a signal is defined as the ratio of the pulse duration (the time the signal is logical high state) to the period of the waveform. For example, a perfect square wave would have a duty cycle of 50%, that is, it is in a high state for exactly half of the signal period. The concept of a duty cycle applies only to periodic signals.

For many high performance circuit applications, the duty cycle of a signal must be carefully controlled. While duty cycle control is valuable in many applications including dynamic logic circuits, analog circuits, arrays, etc., it is particularly important for clock supply circuits. A wide variety of duty cycle controllers have been devised including programmable controllers which allow a user or program interface to set the duty cycle using a digital input value, e.g., from 0-10, wherein an input value of 0 results in a 0% duty cycle and an input value of 10 results in a 100% duty cycle.

SUMMARY OF THE INVENTION

The present invention is directed to tuning of the duty cycle of a target signal by measuring a high period of the target signal, measuring a low period of the target signal, calculating an actual duty cycle value of the target signal based on measurements of the high period and the low period, generating one or more duty control signals based on the actual duty cycle value and a desired duty cycle value, and automatically adjusting the duty cycle of the target signal using a duty cycle controller responsive to the duty control signals. In the illustrative embodiment, the duty control signals include an increment signal and a decrement signal, and the duty cycle controller increases the duty cycle of the target signal when the increment signal has a positive value, and decreases the duty cycle of the target signal when the decrement signal has a positive value. The high and low periods can be measured using high-speed counters to provide a high count for the high period and a low count for the low period. The actual duty cycle value for the target signal can then be calculated from the high and low counts in a way to not be affected by process, temperature or power supply variation even if the high and low counts are affected, and compared to the desired duty cycle value to generate the increment and decrement signals. In this manner, even if the high and low counts are subject to variations due to process, temperature or power supply voltage, their ratio is independent of such variations, so the tuner is immune to those effects.

The above as well as additional objectives, features, and advantages of the present invention will become apparent in the following detailed written description.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.

FIG. 1 is a high-level schematic diagram of one embodiment of a self-adjusting duty cycle tuner constructed in accordance with the present invention;

FIG. 2 is a high-level schematic diagram of one embodiment of a duty control logic circuit constructed in accordance with the present invention which may be used in the duty cycle tuner of FIG. 1;

FIG. 3 is a chart showing a duty cycle tuning range which can be implemented in the duty control logic of FIG. 1 and FIG. 2 in accordance with one embodiment of the present invention;

FIG. 4 is a timing diagram illustrating various signals and count values in one implementation of the present invention for the different nodes, counters and registers of the duty cycle tuner of FIG. 1; and

FIG. 5 is a high-level schematic diagram depicting one application of the self-adjusting duty cycle tuner of the present invention in a dynamic logic circuit.

The use of the same reference symbols in different drawings indicates similar or identical items.

DESCRIPTION OF THE PREFERRED EMBODIMENT(S)

While various means have been devised to provide precision control of duty cycles for digital signal processing, inaccuracies can still be introduced by variations in process, temperature or power supply voltage. These variations can result in significant degradation of duty cycle control, leading to operational problems such as timing violations. It would, therefore, be desirable to devise an improved method of regulating the duty cycle which could overcome variation associated with uncontrollable sources such as process, temperature or power supply voltage. It would be further advantageous if the method could allow for self-adjustment of the duty cycle in real time.

The present invention achieves these benefits by measuring high and low periods of the target signal which are used to calculate an actual duty cycle and generate correction signals that allow for self-adjustment of the target signal's duty cycle. The length of these periods can be measured by counting the number of pulses of high speed generators in high and low periods of the target signal with a high speed counter. The invention thus tunes the duty cycle based on feedback for error compensation using currently measured values. As both high and low periods are measured in the same condition (the counting circuits are located at a common circuit area) and their ratio is used for the tuning, this tuning is free from the effects of variations in process, temperature or power supply voltage.

With reference now to the figures, and in particular with reference to FIG. 1, there is depicted one embodiment 10 of a self-adjusting duty cycle tuner constructed in accordance with the present invention. Self-adjusting duty cycle tuner 10 includes a duty cycle controller 12 which receives a digital input signal such as a clock signal having a current duty cycle, and generates an output signal with an adjusted duty cycle. Duty cycle controller 12 adjusts the duty cycle of the input clock signal based on two correction signals including an increment signal “inc” and a decrement signal “dec”. These correction signals represent adjustment values based on measured high and low periods of the output clock signal.

The high and low periods of the target signal are measured using a high-speed counter which includes an input pulse generator 14 that produces high-speed pulses at a frequency greater than the frequency of the target signal. In the illustrative embodiment input pulse generator 14 is a ring oscillator having a NAND gate which receives two input signals, an enable signal and a feedback signal. The enable signal allows tuner 10 to be used in a selective (programmable) manner, i.e., it is operational only when the enable signal is on (logical high state). The enable signal can also be provided to duty cycle controller 12. The output of the ring oscillator's NAND gate is connected to an inverter chain which generates the feedback signal. This feedback signal (the output of the inverter chain) is also connected to input ports of two gates, a NAND gate 16 and a NOR gate 18. The other input port of each of gate 16, is connected to the output clock signal. The output signals of gates 16 and 18 thus represent high-speed pulses occurring during the high and low states, respectively, of the output clock signal. These two output signals are respectively connected to two dividers 20, 30 which divide the number of received pulses by some integer n, i.e., divider 20 generates an output pulse only after n high-period pulses have been received from NAND gate 16, and divider 30 generates an output pulse only after n low-period pulses have been received from NOR gate 18. The output signals of dividers 20, 30 are respectively connected to two counters 22, 32. Dividers 20, 30 provide for pre-scaling of the high speed pulse so that it can be handled in counters 22, 32.

Counters 22, 32 are set to zero by a reset signal from a first delayed clock signal (the reset signal is low level active in counter 22 while it is high level active in counter 32). The first delayed clock signal is generated by passing the output clock signal through two delay elements 24, 26. In this manner, the values stored in counters 22, 32 represent current high and low counts corresponding to the high and low periods of the output clock signal The output signals of counters 22, 32 (each p bits) are respectively connected to two registers 28, 34. Registers 28, 34 latch the data at nodes c and g, respectively, at the edge of the second delayed clock signal which is generated by passing the output clock signal through only delay element 24 (register 28 latches data at the falling edge of the second delayed clock while register 34 latches data at the rising edge of it), i.e., the first and second delayed clock signals are sequential delays, which allows registers 28, 34 to capture the high and low counts before counters 22, 32 are reset. The values stored in registers 28, 34 therefore represent quantitative measurements of the high and low periods of the just completed cycle of the output clock signal. NAND gate 16, divider 20, counter 22 and register 28 may accordingly be considered a first counting circuit, while NOR gate 18, divider 30, counter 32 and register 34 may be considered a second counting circuit. Those skilled in the art will appreciate that other counting circuits may be used to measure the high and low periods of the current clock cycle.

As the nominal frequency of input pulse generator 14 may vary considerably depending upon the variation of process, temperature and power supply voltage, the divide value “n” of dividers 20, 30 determines and adjusts the minimum granularity of the period in one pulse count. Input pulse generator 14 should provide pulses at a frequency that is sufficiently high to give the resolution required to implement duty cycle tuning. As an example and without limitation to applications of the present invention, for a clock signal having a frequency in the range of 15.6 MHz to 1 GHz, input pulse generator can have a frequency of 8 GHz to 32 GHz, dividers 20, 30 can divide by a factor of 1 to 4, and counters 22, 32 can have a maximum value of 256 (8 bits).

The output signals of registers 28, 34 (the high and low period counts) are provided to duty control logic 36 which calculates the increment and decrement signals (each r bits) used by duty cycle controller 12. As described in further detail below with regard to FIG. 2, duty control logic 36 will set the increment signal to zero and set the decrement signal to some positive value when the calculated duty cycle (h_c/(h_c+l_c)) value is greater than the desired duty cycle (duty input) value plus some decrement threshold value (T_(dec)), and will set the decrement signal to zero and set the increment signal to some positive value when the calculated duty cycle value is smaller than the desired duty cycle value minus some increment threshold value (T_(inc)). Duty control logic 36 will set both the increment signal and the decrement signal to zero when the calculated duty cycle value is within an operational range surrounding the desired duty cycle as defined by the increment and decrement threshold values (α). FIG. 3 depicts the duty cycle tuning range 38 according to these control rules.

Duty cycle controller 12 is controlled by the increment and decrement signals from duty control logic 36. The clock duty cycle is increased when the increment signal has a positive (non-zero) value while it is decreased when the decrement signal has a positive (non-zero) value. Duty cycle controller 12 may be a conventional controller, for example, any of the duty cycle controllers disclosed in Japanese patent application publication nos. 09-321590, 2009-153084, 2010-158004, or 2010-233180.

The present invention may be further understood with reference to a simplified operational example for self-adjusting duty cycle tuner 10. In this example, the input clock signal is intended to have a 50% duty cycle, that is, the clock source has been either designed or programmed for a simple square wave. In order to have a duty cycle value of 50%, the duty input value is set to 0.5 (50%) in an r-bit expression. However, due to variations in the manufacturing process and the particular voltage supply which is powering tuner 10 and its temperature, the actual clock signal generated by the source has only a 45% duty cycle. In this case, and within one clock cycle after tuner 10 is activated by turning on the enable signal, the counting circuits will have calculated a low period count which is greater than the high period count for the output clock signal. In the subsequent clock cycle, duty control logic 36 will generate a positive value for the increment signal and a zero value for the decrement signal. Duty cycle controller 12 will receive these correction signals and will responsively increase the duty cycle according to the amount indicated from the increment signal. The same high and low clock period evaluation and duty cycle correction are applied in the following clock cycle if the duty cycle is not within target range 38. This process is repeated until the duty cycle is in the target range (50%±α). Thereafter, according to this example, the ambient temperature for tuner 10 changes, causing an increase in the duty cycle of the input clock signal, which in turn leads to a duty cycle of 55% for the output clock signal. In this case, and again within one cycle after the fluctuation of the duty cycle occurs, the counting circuits will now calculate a high period count which is greater than the low period count for the output clock signal, so duty control logic 36 generates a positive value for the decrement signal and a zero value for the increment signal, and duty cycle controller 12 responsively decreases the duty cycle towards 50%. This process is repeated until duty cycle is in the target range (50%±α) in the same way as above. Those skilled in the art will appreciate that the 50% duty cycle value is just an example, and the tuner may be used to regulate a signal having any duty cycle value.

With reference now to FIG. 2, the detailed structure for one embodiment of duty control logic 36 in accordance with the present invention is depicted. Duty control logic 36 receives the high count signal (h_c), the low count signal (l_c) (each q bits), and a duty input signal (r bits). The h_c and l_c signals are used to calculate the effective duty cycle (r bits) in the “a/(a+b)” arithmetic operation unit 40. Arithmetic operation unit 40 can calculate the effective duty cycle based on the ratio of the low and high counts, since a/(a+b)=1/(1+b/a). The output of duty cycle arithmetic operation unit 40 is used as one input of two subtractors 42, 44 and a comparator 46. The other input to subtractors 42, 44 and comparator 46 is the duty input signal (r bits) which indicates the desired duty cycle value for the given application. The desired duty cycle is determined externally, and its value can be set in various ways including manually, programmably, or by blowing fuses in the integrated circuit design. Comparator 46 has T_(inc) and T_(dec) input ports which are the amount of threshold for increase control and decrease control, respectively. The increment threshold and decrement threshold signals (both r bits) which are connected to the T_(inc) and T_(dec) ports are determined externally in the same manner as the duty input (desired duty cycle). These values are set to avoid duty cycle continuous tuning when the actual duty cycle value is almost at the desired values. This corresponds to the ±α duty cycle tolerance, that is, duty cycle no tuning range shown as 38 in FIG. 3.

The outputs of comparator 46 are accordingly an indication of whether the actual duty cycle is smaller than the desired duty clock cycle minus T_(inc), or is greater than the desired duty cycle plus T_(dec). If the actual duty cycle is smaller than the desired duty cycle minus T_(inc), comparator 46 activates the upper output signal to a first multiplexer 48. Multiplexer 48 receives a zero value (“00 . . . 0”) input signal (r bits) and an input signal from the output of subtractor 42 (the amount by which the desired duty cycle exceeds the actual duty cycle, in r bits). The latter input signal is passed to the “inc” output signal as the increment signal when the upper output signal from comparator 46 is active. If the actual duty cycle is equal to or greater than the desired duty cycle minus T_(inc), the upper output signal from comparator 46 to multiplexer 48 remains off, yielding a “00 . . . 0” (r bits) output for the increment signal. If the actual duty cycle is greater than the desired duty cycle plus T_(dec), comparator 46 activates the lower output signal to a second multiplexer 50. Multiplexer 50 receives a zero value (“00 . . . 0”) input signal (r bits) and an input signal from the output of subtractor 44 (the amount by which the actual duty cycle exceeds the desired duty cycle, in r bits). The latter input signal is passed to the “dec” output signal as the decrement signal when the lower output signal from comparator 46 is active. If the actual duty cycle is equal to or smaller than the desired duty cycle plus T_(dec), the output signal from comparator 46 to multiplexer 50 remains off, yielding a “00 . . . 0” (r bits) output for the decrement signal. The increment and decrement signals are then used by duty cycle controller to automatically adjust the duty cycle of the input clock signal. As an example and again without limitation to applications of the present invention, in the illustrative implementation duty control logic 36 receives 8-bit (q) count input signals (the h_c and l_c signals) and a 9-bit (r) duty input signal, and generates 9-bit (r) output signals (the increment and decrement signals).

The frequency of ring oscillator 14 may fluctuate depending on variations in process, temperature or power supply voltage, so the number of pulses generated by dividers 20, 30 may also be inconsistent over time. However, the ratio of the pulse counts which is calculated as “duty_cycle” in duty control logic 36 is independent of such variations, so the tuning achieved by duty cycle controller 12 is free from variations due to process, temperature or power supply voltage, and this duty cycle tuning shows quick response since it performs real-time feedback.

FIG. 4 is a timing diagram showing the signals for an illustrative implementation of tuner 10 at various nodes labeled in FIG. 1 as a-j. The output clock signal is at the top of the diagram, followed by the two delayed clock signals at nodes i and j (the clock input signals to the registers and counters, respectively). When the output clock signal is high, NAND gate 16 is pulsing its output as indicated for node a, and the divided pulse is being sent to counter 22 through node b. The count value at node c continues incrementing while the output clock remains high level, but during this time the high count signal at node d is keeping the value in the previous cycle (hc₀) since register 28 has not been latched yet. When the delay signal at node i switches to low level, the current high period count value (hc₁) is loaded into register 28, i.e., is output at node d. Shortly thereafter, the delay signal at node j switches to low level, resetting counter 22 at node c. This cycle repeats each time the output clock signal is high, to yield successive high count values (h_(i): i=2, 3, . . . ).

When the output clock is signal is low, NOR gate 18 is pulsing its output as indicated for node e, and the divided pulse is being sent to counter 32 through node f. The count value at node g continues incrementing while the output clock remains low level, but during this time the low count signal at node h is keeping the value in the previous cycle (lc₀) since register 34 has not been latched yet. When the delay signal at node i switches to high level, the current low period count value (lc₁) is loaded into register 34, i.e., is output at node h. Shortly thereafter, the delay signal at node j switches to high level, resetting counter 32 at node g. This cycle repeats each time the output clock signal is low, to yield successive low count values (l_(i): i=2, 3, . . . ). The increment and decrement signals are generated in duty control logic 36 every time the high and low count signals (at node d and node h) are updated, i.e., on the rising and falling edges of the delayed clock signal at node i. For systems which require lower accuracy of duty cycle tuning, the period for duty cycle tuning can be reduced by setting larger values for T_(inc) and T_(dec). The numbers of this feedback control can be reduced if less frequent feedback is favorable.

The present invention has application to any electronic system requiring duty cycle regulation of a signal. FIG. 5 illustrates one of many possible examples where tuner 10 is particularly advantageous. A dynamic circuit 60 has two input signals A and B. When the clock input to dynamic circuit 60 is in a low state, the circuit is in a precharge phase at which the output capacitor will be charged regardless of the values of A and B and their combinational logic. When the clock input signal is in a high state, the circuit is in an evaluation phase at which the output value is dependent upon the values of input A and input B. For this application the input signals A, B must be set at a low logic level before the clock signal becomes high. Furthermore, the output must be captured before the clock signal becomes low. It is therefore critical that the duty cycle of the clock be accurate to ensure proper circuit performance. So if the circuit requires a precharge period larger than the evaluation period, its duty cycle can be set to an appropriate value of less than 50%. If it requires an evaluation period longer than pre-charge period, the duty cycle can be set to an appropriate value of more than 50%. Use of tuner 10 to provide an adjusted clock signal guarantees that the duty cycle will be unaffected by variations in process, temperature or power supply voltage. In the example of FIG. 5, dynamic circuit 60 is a NAND gate but those skilled in the art understand that the clocking principles apply to other dynamic circuits as well.

Other notable applications include an array circuit, a level sensitive latch, a sample and hold circuit, and a switched capacitor integrator. For an array circuit such as a memory array using wordline drivers, the width of the wordline signals (read and write lines) affects array read and write performance. The width of the wordline signals is dictated by the active (high or low) period of the clock signal, and thus should be carefully controlled. In a level sensitive latch (or D-latch), data is transparent from the D input to the Q output at the high (or low) level of the clock signal, and data is latched at the low (or high) level of the clock signal. It is accordingly important to set the high (or low) period of the clock signal which corresponds to the transparent period of the level sensitive latch as long as possible. However the transparent period should be short enough to avoid causing a hold violation (racing). Thus accurate duty cycle tuning is required for performance optimization. For a sample and hold circuit, data is sampled at the high level of the clock signal, and held at the low level of the clock signal. The duty cycle of the clock signal thus determines the ratio of sample and hold periods, which needs to be accurately controlled to maintain an appropriate resistor-capacitor (RC) constant for the circuit. In a switched capacitor integrator, charge is transferred from the data input to the data output through transfer-gate switches. To implement the ideal performance with this integrator, the duty cycle of the clock signal should be controlled as closely as possible to 50%. These applications should not be construed in a limiting sense as many other circuits may be targeted for duty cycle control.

Although the invention has been described with reference to specific embodiments, this description is not meant to be construed in a limiting sense. Various modifications of the disclosed embodiments, as well as alternative embodiments of the invention, will become apparent to persons skilled in the art upon reference to the description of the invention. For example, duty control logic 36 is described as providing the two different increment and decrement signals to duty cycle controller 12, but in an alternative implementation duty control logic 36 can encode the duty control data into a single signal (r bits) which can then be decoded by the duty cycle controller into separate increment and decrement signals. It is therefore contemplated that such modifications can be made without departing from the spirit or scope of the present invention as defined in the appended claims. 

What is claimed is:
 1. A self-adjusting duty cycle tuner comprising: a target signal input for receiving a target signal having a first frequency; an input pulse generator which produces high-speed input pulses at a frequency greater than a frequency of the target signal; a first counting circuit which receives the high-speed input pulses and the target signal, and derives a high count signal representing a high period of the target signal; a second counting circuit which receives the high-speed input pulses and the target signal, and derives a low count signal representing a low period of the target signal; a duty control logic circuit which receives the high count signal, the low count signal, a desired duty cycle value for the target signal, an increment threshold value and a decrement threshold value, then generates one or more duty control signals, wherein the one or more duty control signals include an increment signal and a decrement signal, the increment signal representing a first correction value for increasing the duty cycle of the target signal, and the decrement signal representing a second correction value for decreasing the duty cycle of the target signal, and wherein said duty control logic circuit includes a duty cycle arithmetic operation unit which implements add and divide operations using the high and low count signals and calculates an actual duty cycle value for the target signal, a comparator which activates a first output signal when the actual duty cycle value is smaller than the desired duty cycle value minus an increment threshold value and activates a second output signal when the actual duty cycle value is greater than the desired duty cycle value plus a decrement threshold value, a first subtractor which outputs a first amount by which the desired duty cycle exceeds the actual duty cycle, a second subtractor which outputs a second amount by which the actual duty cycle exceeds the desired duty cycle, a first multiplexer controlled by the first output signal of said comparator having input ports which receive a zero value and an output value of said first subtractor and having an output result which is the increment signal, and a second multiplexer controlled by the second output signal of said comparator having input ports which receive a zero value and an output value of said second subtractor and having an output result which is the decrement signal; and a duty cycle controller which automatically adjusts the duty cycle of the target signal in response to the one or more duty control signals to provide an output signal having the desired duty cycle value.
 2. The self-adjusting duty cycle tuner of claim 1 wherein the input pulse generator is a ring oscillator.
 3. The self-adjusting duty cycle tuner of claim 1 wherein: the first counting circuit includes a NAND gate having two input ports which receive the high-speed input pulses and the target signal, a first divider having an input port which receives high period pulses from an output port of said NAND gate, the high period pulses being high-speed input pulses occurring during a high state of the target signal, a first counter having an input port which receives high count pulses from an output port of said first divider, and a first register having an input port which receives a current high period measurement from an output port of said first counter, and holding an output result which provides the high count signal; and the second counting circuit includes a NOR gate having two input ports which receive the high-speed input pulses and the target signal, a second divider having an input port which receives low period pulses from an output port of said NOR gate, the low period pulses being high-speed input pulses occurring during a low state of the target signal, a second counter having an input port which receives low count pulses from an output port of said second divider, and a second register having an input port which receives a current low period measurement from an output port of said second counter and holding an output result which provides the low count signal.
 4. The self-adjusting duty cycle tuner of claim 1 wherein said duty cycle controller increases the duty cycle of the target signal as indicated by the increment signal, and decreases the duty cycle of the target signal as indicated by the decrement signal.
 5. A clock control circuit comprising: a clock source which provides an input clock signal; a duty cycle controller which automatically adjusts a duty cycle of the input clock signal in response to an increment signal and a decrement signal to provide an output clock signal having a desired duty cycle; a high-speed input pulse generator which produces high-speed input pulses at a frequency greater than a frequency of the input clock signal; a first counting circuit which uses the high-speed input pulses to measure a high count for a high period of the input clock signal; a second counting circuit which uses the high-speed input pulses to measure a low count for a low period of the input clock signal; duty control logic which calculates an actual duty cycle value by performing add and divide operations using the high and low counts, compares the actual duty cycle value to a desired duty cycle value minus an increment threshold value and to the desired duty cycle value plus a decrement threshold value, and selectively sets the increment signal to indicate a first amount by which the duty cycle of the input clock signal should be increased when the actual duty cycle value is smaller than the desired duty cycle value minus the increment threshold value, sets the decrement signal to indicate a second amount by which the duty cycle of the input clock signal should be decreased when the actual duty cycle value is greater than the desired duty cycle value plus the decrement threshold value, and sets both the increment signal and the decrement signal to zero when the actual duty cycle value is equal to or greater than the desired duty cycle value minus the increment threshold value and the actual duty cycle value is equal to or smaller than the desired duty cycle value plus the decrement threshold value.
 6. The clock control circuit of claim 5 wherein the ratio of the high and low counts is independent of variations in process, temperature and power supply voltage.
 7. The clock control circuit of claim 5 wherein the increment and decrement signals are generated every time the high and low counts are updated.
 8. An electronic system comprising: a target circuit which receives at least one input signal and produces at least one output signal, said target circuit requiring a clock signal having a specific duty cycle; a clock source which provides an input clock signal; and a self-adjusting duty cycle tuner which automatically adjusts a duty cycle of the input clock signal to provide an output clock signal having the specific duty cycle to said target circuit, wherein said self-adjusting duty cycle tuner measures a high period of the input clock signal, measures a low period of the input clock signal, calculates an actual duty cycle of the input clock signal based on measurements of the high period and the low period, and generates one or more duty control signals based on the actual duty cycle and the specific duty cycle, wherein said self-adjusting duty cycle tuner uses high-speed counters to measure the high and low periods, calculates the actual duty cycle using counts values from the high-speed counters, compares the actual duty cycle to the specific duty cycle, sets an increment signal to indicate a first amount by which the duty cycle of the input clock signal should be increased when the actual duty cycle is smaller than the specific duty cycle by more than an increment threshold value, sets a decrement signal to indicate a second amount by which the duty cycle of the input clock signal should be decreased when the actual duty cycle is greater than the specific duty cycle by more than a decrement threshold value, and sets both the increment signal and the decrement signal to zero when the actual duty cycle is within an operational range surrounding the specific duty cycle defined by the increment and decrement threshold values.
 9. The electronic system of claim 8 wherein the target circuit is a dynamic logic circuit having at least two digital input ports, and the specific duty cycle is approximately 50%.
 10. A self-adjusting duty cycle tuner comprising: a target signal input for receiving a target signal having a first frequency; an input pulse generator which produces high-speed input pulses at a frequency greater than a frequency of the target signal; a first counting circuit which receives the high-speed input pulses and the target signal, and derives a high count signal representing a high period of the target signal, wherein the first counting circuit includes a NAND gate having two input ports which receive the high-speed input pulses and the target signal, a first divider having an input port which receives high period pulses from an output port of said NAND gate, the high period pulses being high-speed input pulses occurring during a high state of the target signal, a first counter having an input port which receives high count pulses from an output port of said first divider, and a first register having an input port which receives a current high period measurement from an output port of said first counter, and holding an output result which provides the high count signal; a second counting circuit which receives the high-speed input pulses and the target signal, and derives a low count signal representing a low period of the target signal, wherein the second counting circuit includes a NOR gate having two input ports which receive the high-speed input pulses and the target signal, a second divider having an input port which receives low period pulses from an output port of said NOR gate, the low period pulses being high-speed input pulses occurring during a low state of the target signal, a second counter having an input port which receives low count pulses from an output port of said second divider, and a second register having an input port which receives a current low period measurement from an output port of said second counter and holding an output result which provides the low count signal; a duty control logic circuit which receives the high count signal, the low count signal, a desired duty cycle value for the target signal, an increment threshold value and a decrement threshold value, then generates one or more duty control signals; and a duty cycle controller which automatically adjusts the duty cycle of the target signal in response to the one or more duty control signals to provide an output signal having the desired duty cycle value. 